package plar;

import java.awt.Polygon;
import java.util.ArrayList;
import java.util.List;

import plar.core.Sprite;


public class SpriteSet {

	public List <Sprite> sprites;
	public int currentSprite;
	
	
	public SpriteSet()
	{
		sprites  = new ArrayList<Sprite>();
		currentSprite=0;
		Polygon p = new Polygon();		p.addPoint(50,50);p.addPoint(0,0);
		sprites.add(new Sprite("defaultSprite.png",p));
				
		
	}
	
	public void nextSprite()
	{
		currentSprite = (currentSprite + 1)%sprites.size();
	}
	
	public Sprite getCurrentSprite()
	{
		return sprites.get(currentSprite);
	}
}
